// 整个项目api的统一管理
import request from './request.js';


//请求首页左侧表格的数据
export default {
    getTableData() {
        return request({
            url: '/home/getTableData',
            // url: "https://apifoxmock.com/m1/4068509-0-default/api/home/getTable",
            method: 'get',
            // data:{
            //
            // }
            mock: true
        });
    },
    getCountData(){
    return request({
        url: '/home/getCountData',
        method: 'get',
    });
    },
    getChartData(){
    return request({
        url: '/home/getChartData',
        method: 'get',
    });
    },
    getUserData(data){
    return request({
        url: '/home/getUserData',
        method: 'get',
        data,
    });
    },
    deleteUser(data){
    return request({
        url: '/home/deleteUser',
        method: "get",
        data,
    });
    },
    addUser(data){
    return request({
        url: '/home/addUser',
        method: "post",
        data,
    });
    },
    editUser(data){
    return request({
        url: '/home/editUser',
        method: "post",
        data,
    });
    },
    getMenu(params){
    return request({
        url: '/permission/getMenu',
        method: "post",
        data:params,
    });
    },
}